package com.example.hasee.home;

import com.example.hasee.data.DataStore;

import java.util.ArrayList;

import cn.bmob.v3.BmobUser;

public class HomePresenter implements HomeContract.Presenter{
    private HomeContract.View rootView;
    private DataStore mDataStore;
    public HomePresenter(HomeContract.View rootView){
        this.rootView=rootView;
        mDataStore=DataStore.getINSTANCE();
    }
    @Override
    public ArrayList<String> getFuncMenuList() {
        return mDataStore.getFuncMenuList();
    }

    @Override
    public void userLogout() {
        BmobUser.logOut();
        rootView.toLoginView();
    }
}
